<?php
class queryToneAction extends sfActions
{
	public function execute()
	{




            $toneProvide_namespace = 'http://event.toneprovide.ivas.huawei.com';

            $toneProvide_wsdl = 'http://192.168.228.236:8080/jboss-net/services/ToneProvide?wsdl';
            $huaweiAcc = 'IRING';
            $huaweiPwd = '123';

            $rbtCode = 58097;//$this->getRequestParameter('c',null);
            $approvedType = '2';//$this->getRequestParameter('t','2');

            $queryToneEvt = new QueryToneEvt(
                $huaweiAcc,$huaweiPwd,'1',
                null,null,null,null,
                trim($rbtCode),$approvedType
            );

            $crbtCaller = new CRBTCaller();

            $querySettingResp = $crbtCaller->exec($queryToneEvt, 'QueryToneEvt', 'queryTone', $toneProvide_wsdl, $toneProvide_namespace);

            echo $querySettingResp->returnCode;

            echo '<br/>';

            var_dump($querySettingResp);

            exit();
    }
}
?>
